//
//  FlightSearchController.h
//  ELife
//
//  Created by xiaozhi on 11-5-23.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "FlightCheckedModel.h"

#define TAG_INPUT_CONTAINER 1
#define TAG_SEARCH_BUTTON 2
#define TAG_TEXTFIELD_FROMCITY 4
#define TAG_TEXTFIELD_TOCITY 5
#define TAG_TEXTFIELD_FROM_DATE 6
#define TAG_DATE_PICKER 103


#define Y_OFFSET 35
static FlightCheckedModel *checkModel;
@interface FlightSearchController : UIViewController <UIActionSheetDelegate> {
    
}
@property (retain, nonatomic) IBOutlet UIButton *fromCityButton;
@property (retain, nonatomic) IBOutlet UIButton *toCityButton;
@property (retain, nonatomic) IBOutlet UIButton *fromDateButton;

+ (FlightCheckedModel *)getCheckedModel;

// customer init
- (FlightSearchController *)initWithCustomer;

// segmentControl action
- (IBAction)segmentControlAction:(id)sender;

// pick city
- (IBAction)pickFromCity;
- (IBAction)pickToCity;

// pick date
- (IBAction)pickDate:(id)sender;

// search
- (IBAction)search;
@end
